import { translateTitle } from '@/utils/i18n'
const User = {
  User: {
    search: {
      form: {
        method: 'sysUserServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.DamsSystemManagement.用户名'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: 'sysUserServiceImpl.save',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.DamsSystemManagement.账号'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'USER_NAME',
            label: translateTitle('Dams.DamsSystemManagement.密码'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    forbiddenMethod: 'userServiceImpl.disableAndEnabled',
    resetPws: 'userServiceImpl.resetPassword',
    delete: 'userServiceImpl.deleteById',
    update: 'sysUserServiceImpl.update',
  },
}
export default User
